package com.wh.mylogback.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: HuiEr
 * @Date: 2020/2/25 20:23
 * @Description
 */
@RestController
public class UserController {

    private Logger logger= LoggerFactory.getLogger(UserController.class);
    @RequestMapping("test")
    public String test(){

        logger.trace("wo shi trace");
        logger.debug("wo shi debug");
        logger.info("wo shi info");
        logger.warn("wo shi warn");
        logger.error("wo shi error");
        return "我是xiaobobo";
    }
}
